package com.ityu.controller;

import com.ityu.pojo.result.Result;
import com.ityu.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/log")
@RestController
public class LogController {

    @Autowired
    LogService logService;

    @GetMapping("/page")
    public Result page(Integer page,Integer pageSize){
        log.info("-----LogControllerPage-----分页查询日志！{} {}",page,pageSize);
        return Result.success(logService.page(page,pageSize) );
    }

}
